<?php if (isset($this->basicInfo)) {  ?>
	<h2 style="text-transform: capitalize;" ><?php echo $this->basicInfo['project_name']?></h2>
	<h5 style="text-transform: capitalize;padding-left: 3em;" >By: <?php echo $this->basicInfo['name']?></h5>
	<hr/>
	<dl>
  <dt><h3><a> Location:</a></h3></dt>  <dd><?php echo $this->basicInfo['location']?>,<?php echo " ".ucfirst($this->basicInfo['city'])?><br/>
  						<?php if (strtolower($this->basicInfo['city']) != strtolower($this->basicInfo['district'])) {
  						    echo ucfirst($this->basicInfo['district']).", ";
  						} ?>
  						<?php if (strtolower($this->basicInfo['district']) != strtolower($this->basicInfo['state'])) {
  						    echo ucfirst($this->basicInfo['state']);
  						} ?></dd><br/>
  <dt><h3><a>Size of Project:</a></h3></dt> <dd><?php echo $this->basicInfo['total_area'];?> acres</dd><br />
  <dt><h3><a>Summary:</a></h3></dt> <dd><?php echo html_entity_decode($this->basicInfo['summary']);?></dd><br />
  <dt><h3><a>Contact Information:</a></h3></dt> <dd><span style="color:red;">Contact Number : </span><?php echo $this->basicInfo['contact'];?>
  					<?php if (isset($this->basicInfo['email'])) {
  					    echo ',<br/><span style="color:red;">E-Mail : </span> <a href="mailto:'.$this->basicInfo['email'].'" >'.$this->basicInfo['email'].'</a>';
  					} ?>
  					</dd><br/>
  <?php if (count($this->specInfo)) {
      $showAll = null;
  $authData = Zend_Auth::getInstance()->getStorage()->read();
		if (is_array($authData) and $authData['identity'] != 'anon'){
			$showAll = true;
        }
      ?>
  <dt><h3><a>Specifications:</a></h3></dt> <dd>
  <table cellspacing="5" cellpadding="5">
  <tr><th>Category</th><th>Type</th><th>Size(sq. ft.)</th><th>BHK</th>
  <?php 
  			if($showAll){echo"<th>Price</th>";}
  ?></tr>
  <?php foreach ($this->specInfo as $key => $spec) {
      echo '<tr>';
      echo '<td>'.$spec['category_id'].'</td>';
      echo '<td>'.$spec['type_id'].'</td>';
      echo '<td>'.$spec['size'].'</td>';
      echo '<td>'.$spec['bhk'].'</td>';
      if ($showAll) {
      echo '<td>Rs. '.$spec['price'].'</td>';
      }
      echo '</tr>';
  }?>
  </table></dd>
  <?php
  }
  else{
  	echo "<p> It doesnot have any specifications. </p>";
  }
  ?>
  
  
 <?php 
} 
  ?>
  </dl>    